﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using QxFramework.Utilities;
using QxFramework.Core;
using System;

public class EventReciever : MonoBehaviour, IEventReciever
{
    public void Start()
    {
        MessageManager.Instance.Get<TestType>().RegisterHandler(TestType.Click, Click);
        Debug.Log("register");
    }
    
    public void Click(object sender, EventArgs args)
    {
        Debug.Log("click");
    }
}

public interface IEventReciever
{
     void Click(object sender, EventArgs args);
}
public enum TestType
{
    Click,
    Escape,
}